﻿using System;
using Syncfusion.Windows.PdfViewer;

namespace PdfSdk.PdfViewer
{
    public class AnnotationSettingsWrapper : ObjectWrapper
    {
        public AnnotationSettingsWrapper(AnnotationSettings settings) : base(settings)
        {
        }

        public DocumentView AnnotationParent
        {
            get => GetPropertyValue() as DocumentView;
            set => SetPropertyValue(value);
        }

        public string Name
        {
            get => GetPropertyValue()?.ToString();
            set => SetPropertyValue(value);
        }

        public int PageIndex
        {
            get => Convert.ToInt32(GetPropertyValue());
            set => SetPropertyValue(value);
        }
    }
}
